package com.example.demo.nettydemo.message;

import com.example.demo.nettydemo.Message;
import com.example.demo.nettydemo.common.CommandConstant;

public class LoginResponse extends Message {

    private String message;

    private Boolean result;

    public LoginResponse(){
        super.messageType = CommandConstant.loginResponse;
    }

    public LoginResponse(Boolean result,String message){
        super.messageType = CommandConstant.loginResponse;
        this.result = result;
        this.message = message;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }


    @Override
    public String toString() {
        return "LoginResponse{" +
                "messageType=" + messageType +
                ", sendDate=" + sendDate +
                ", message='" + message + '\'' +
                ", result=" + result +
                '}';
    }
}
